package com.yang.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * 商品轮播图实体类，存放在mongoDB中
 * 作者：孤城暖阳y
 * 时间：2025-03-15
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("carousel_images")
@Data
@Accessors(chain = true)
@Document(collection = "carousel_images")
public class CarouselImagesDO {

    /**
     * MongoDB的id
     */
    @Id
    private Long id;

    /**
     * 商品id
     */
    private Long commodityId;

    /**
     * 图片url列表
     */
    private List<String> imgUrl;
}


